const movie = {
    movieList:[]
};

export default function movieReducer (prevState=movie,action) {
   const {type,data} = action ;
   switch (type){
    case 'getmovieListMsg':
        return{
            ...prevState,movieList:data
        }
                
   }
    return prevState;
}